
class Sungjuk_6_4{
	void title(){
		System.out.println("** 추상클래스 ***");
		System.out.println("** 자바 성적 출력 ***");
		System.out.println("** 학번 성명 점수 ***");
		System.out.println("** ---------- ***");
	}
}
abstract class Sungjuk_6_4_1 extends Sungjuk_6_4{
	String hakbun1 = "2062001";
	String name1 = "hahaha";
	int jumsu1 = 11;
	abstract void prt_data1();
}
abstract class Sungjuk_6_4_2 extends Sungjuk_6_4_1{
	String hakbun2 = "2062001";
	String name2 = "22222";
	int jumsu2 = 22;
	abstract void prt_data2();
}
abstract class Sungjuk_6_4_3 extends Sungjuk_6_4_2{
	String hakbun3 = "2062001";
	String name3 = "33333";
	int jumsu3 = 33;
	abstract void prt_data3();
}
class Sungjuk_6_4_4 extends Sungjuk_6_4_3{
	String hakbun4 = "206004";
	String name4 = "gagaga";
	int jumsu4 = 99;
	public void prt_data1(){
		System.out.println(hakbun1 + " " + name1 + " " + jumsu1);
	}
	public void prt_data2(){
		System.out.println(hakbun2 + " " + name2 + " " + jumsu2);
	}
	public void prt_data3(){
		System.out.println(hakbun3 + " " + name3 + " " + jumsu3);
	}
	public void prt_data4(){
		System.out.println(hakbun4 + " " + name4 + " " + jumsu4);
	}
}
class ex_6_4 extends Sungjuk_6_4_4 {
	public static void main(String[] args){
		Sungjuk_6_4_4 test = new Sungjuk_6_4_4();
		test.title();
		Sungjuk_6_4_4 t1 = new Sungjuk_6_4_4();
		Sungjuk_6_4_4 t2 = new Sungjuk_6_4_4();
		Sungjuk_6_4_4 t3 = new Sungjuk_6_4_4();
		Sungjuk_6_4_4 t4 = new Sungjuk_6_4_4();
		t1.prt_data1();
		t2.prt_data2();
		t3.prt_data3();
		t4.prt_data4();
	}
}
